﻿using System;
using System.Collections.Generic;

namespace gvPoco.ChartOptions
{
    /// <summary>
    /// The background color for the main area of the chart. Can be either a simple HTML color string, for example: 
    /// 'red' or '#00cc00', or an object with the following properties.
    /// </summary>
    public class BackgroundColor
    {
        /// <summary>
        /// The color of the chart border, as an HTML color string.
        /// </summary>
        public string stroke { get; set; }

        /// <summary>
        /// The border width, in pixels.
        /// </summary>
        public int strokeWidth { get; set; }

        /// <summary>
        /// The chart fill color, as an HTML color string.
        /// </summary>
        public string fill { get; set; }

        /// <summary>
        /// The background color for the main area of the chart. Can be either a simple HTML color string, for example: 
        /// 'red' or '#00cc00', or an object with the following properties.
        /// </summary>
        public BackgroundColor()
        {
            stroke = "#666";
            strokeWidth = 0;
            fill = "white";
        }

        /// <summary>
        /// The background color for the main area of the chart. Can be either a simple HTML color string, for example: 
        /// 'red' or '#00cc00', or an object with the following properties.
        /// </summary>
        public BackgroundColor(string fillColor)
        {
            fill = fillColor;
        }

    }
}